<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link href="http://localhost/IT_JP/public/frontend/images/hut.jpg" rel="shortcut icon" type="image/x-icon" />
        <link rel="stylesheet" type="text/css" href="http://localhost/IT_JP/public/frontend/css/style_login.css" media="screen" />
        
        <title>テスト</title>
        <script language="JavaScript" type="text/javascript">
            function check_form()
            {
                var emailFilter = /^[^@]+@[^@.]+\.[^@]*\w\w$/ ;
                var illegalChars= /[\(\)\<\>\,\;\:\\\"\[\]]/ ;
                if(document.formLogin.txtID.value=="")
                {
                    alert("ユーザーを入力しなければならない");
                    document.formLogin.txtID.focus();
                    return false;
                }
                if(document.formLogin.txtPass.value=="")
                {
                    alert("パースワードを入力しなければならない");
                    document.formLogin.txtPass.focus();
                    return false;
                }
            }
            window.history.forward();
            function noBack() { window.history.forward(); }
        </script>
    </head>
    <body onload="noBack();"
    onpageshow="if (event.persisted) noBack();" onunload="">
        <div class="topbg" align="center">
            <div class="banner">
                
            </div>
            <div align="center">
                <div class="page" style="width:934px; text-align:left">
                    <div style="padding:0px 0px 0px 0px" align="left">
                        <br></br>
                        <form action="<?php echo base_url()?>verifylogin_tester" method="POST" name="formLogin" onsubmit="return check_form()">  
                            <table width="100%" cellspacing="1" align="center">
                                <tr>
                                    <td align="center">
                                        <h1><?php if($manager_name=="HUST")
                                            echo "ハノイ工科大学"; 
                                        else if($manager_name=="SOSC")
                                            echo "SOSC";
                                        else if($manager_name=="FPT")
                                            echo "FPT株式会社";
                                        ?></h1>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center">
                                        <h2><?php 
                                            foreach ($query->result() as $value) {
                                                   echo $value->test_title;
                                                   ?>
                                            <td><input type="hidden" name="txtTestTitle" value="<?=$value->test_title?>"</input></td>
                                            <?php
                                            }
                                        ?></h2>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="thead" align="center">
                                        <h1>テストのログイン</h1>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center">
                                        <table class="tborder" width="400" style="margin-bottom:50px" cellspacing="0" cellpadding="5">
                                            <tr> 
                                                <td class="row1" style="padding-left:10px;" width="128">ユーザー</td>
                                                <td class="row2" width="266"><input type="text" name="txtID" size="40"/>
                                                </td>
                                            </tr>
                                            <tr> 
                                                <td class="row1" style="padding-left:10px;">パースワード</td>
                                                <td class="row2"><input type="password" name="txtPass" size="40" value=""/>
                                                </td></td> 
                                            </tr>
                                            
                                            <tr> 
                                                <td class="row1" align="center"><input type="submit" name="Submit" value="ログイン"/></td>
                                                <td class="row1" align="left"><input type="reset" name="Reset" value="リセット"/></td>
                                            </tr>
                                            <tr>
                                                <td class="row1" align="center" colspan="2">
                                                    <?php if(isset($error_login)) echo $error_login;?>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="row1" align="center" colspan="2">
                                                    <?php if(isset($wait))echo $wait;?>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="row1" align="center" colspan="2">
                                                    <a href="<?php echo base_url();?>findpass">パスワードを忘れた!</a>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td><input type="hidden" name="txtTestSubTitle" value="<?=$testsubtile?>"</input></td>
                                    <td><input type="hidden" name="txtManagerName" value="<?=$manager_name?>"</input></td>
                                    <td><input type="hidden" name="txtStartTime" value="<?=$start_time?>"</input></td>
                                    <td><input type="hidden" name="txtEndTestTime" value="<?=$end_test_time?>"</input></td>
                                </tr>
                            </table>
                        </form>
                    </div>
                </div>
            </div>
            <div class="footer" style="padding-top:40px;padding-bottom: 10px;" align="center">
                <a href="#">HEDSPI-T06に開発された <br/> </a>                
            </div>
        </div>
    </body>
</html>

